import { eventBus } from "../store/store.js"


export default {
    computed: {
        list() {
            return eventBus.list;
        },
        seen() {
            return eventBus.seen
        }
    },
    template: `
    <div v-show="seen" class="publish">
        <div id="container">
            <p v-for="item in list" v-html="item" class='art'></p>
        </div>           
        <button @click="edit">编辑</button>
    </div>
    `,
    methods: {
        edit() {
            eventBus.$emit("edit")
        }
    },
}